<?php

declare(strict_types=1);

namespace app\payment\controller;

use app\CheckTokenController;
use app\order\model\Order;
use app\order\model\OrderGoods;

class Index extends CheckTokenController
{
    public function index()
    {
        $params = $this->request->param();
        $DBOrderGoods = new Order();
        $info = $DBOrderGoods->where('order_id', $params['order_id'])->find();
        $info->is_pay = 2;
        $info->save();
        return result($info);
    }
}
